package ln.gather.jsr.jndi.file;

import javax.naming.Context;
import javax.naming.NamingException;
import javax.naming.spi.InitialContextFactory;
import java.util.Hashtable;

/**
 * @Description FileSystemInitialContextFactory
 * @Author zhangj
 * @Date 2022/11/13 13:05
 */
public class FileSystemInitialContextFactory implements InitialContextFactory {

    @Override
    public Context getInitialContext(Hashtable<?, ?> environment) throws NamingException {
        return new FileSystemContext(environment);
    }
}
